<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>Document</title>
    </head>
    <body>
        <h1>canvas HTML属性尺寸和CSS尺寸多个细节深入</h1>
        <p><a href="https://www.zhangxinxu.com/wordpress/2018/07/canvas-html-size-css-size/">来源</a></p>
        <canvas height="150" style="background:green; height:88px;"></canvas>
        <script>
            var canvas = document.querySelector('canvas');
            var context = canvas.getContext('2d');
            context.fillStyle = 'orange';
            context.arc(150, 75, 75, 0, 2 * Math.PI);
            context.fill();
        </script>
    </body>
</html>